package com.oig.sys.auth.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "接口权限信息")
public class PermissionVo {

    @Schema(description = "主键id")
    private Integer id;

    @Schema(description = "所属系统")
    private Integer systemId;

    @Schema(description = "接口相对地址")
    private String apiUrl;

    @Schema(description = "接口名称")
    private String apiName;

    @Schema(description = "api说明")
    private String apiDesc;

    @Schema(description = "状态 01-生效 02-注销")
    private String status;

    @Schema(description = "添加人")
    private String createUserName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "添加时间")
    private Date createTime;

    @Schema(description = "最后修改人")
    private String lastUpdateName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "最后修改时间")
    private Date lastUpdateTime;


    //是否是 开放资源
    @Schema(description = "是否是开放资源 0-授权资源 1-开放资源")
    private String flag;	//0-授权资源 1-开放资源
}
